package cn.itsource.atoProperties;

import cn.itsource.properties.WechatProperties;
import cn.itsource.template.WechatTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * @program fccar-two
 * @Description
 * @Author TT
 * @Date 2024/09/05 16:47
 * @Version 1.0
 */
@EnableConfigurationProperties({WechatProperties.class}) //开启自动扫描WechatProperties中的配置
public class WechatAtoProperties {
    @Bean
    public WechatTemplate WechatAtoProperties(WechatProperties wechatProperties){
        return new WechatTemplate(wechatProperties);
    }
}
